-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pickers] Let the field components handle their opening UI, and allow field editing on mobile pickers #15671
base: master
Are you sure you want to change the base?
Conversation
Localization writing tips ✍️Seems you are updating localization 🌍 files. Thank you for contributing to the localization! 🎉 To make your PR perfect, here is a list of elements to check: ✔️
Deploy preview: https://deploy-preview-15671--material-ui-x.netlify.app/ Updated pages: |
d12b422
to
9a2d4d8
Compare
9a2d4d8
to
d94e368
Compare
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
return { | ||
startDate: excludeProps(startDateResponse, ['clearable', 'onClear']), | ||
endDate: excludeProps(endDateResponse, ['clearable', 'onClear']), | ||
startDate: startDateResponse, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now handled by cleanFieldResponse
@@ -213,7 +215,7 @@ export const useDesktopRangePicker = < | |||
role="tooltip" | |||
placement="bottom-start" | |||
containerRef={popperRef} | |||
anchorEl={anchorRef.current} | |||
anchorEl={providerProps.contextValue.triggerRef.current} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will use the context directly to access this prop in a follow up
Closes #7869
Closes #14787
That one will be hard to split 😬
useClearableField
hook is no longer used internally. It can remain available for custom fields during v8, in v9 we will have the composition API for a better DXopenPickerButtonPosition
andclearButtonPosition
field props.Not in this PR:
useEnrichedRangePickerFieldProps
stills handle the opening on clickExtracted PRs
onOpen()
andonClose()
methods ofusePickerContext()
with a singlesetOpen()
method #15701usePicker
logic #15763ownerState
inuseClearableField
#15776